<?php
class Session {

    public static function initialize() {
        session_start();
        session_regenerate_id();
    }

    public static function set($key, $value) {
        $_SESSION[$key] = $value;
    }

    public static function get($key) {
        if( isset($_SESSION[$key]) ) {
            return $_SESSION[$key];
        }
    }

    public static function delete($key) {
        unset($_SESSION[$key]);
    }

    public static function destroy() {
        session_destroy();
    }

}